//
// Created by hjie on 23-6-22.
//
#include "websocket_server.h"
#include "config/config.h"
#include "server_manager.h"
#include <signal.h>

void SignalProcess(int signal)
{
    auto manager = ServerManager::Instance();

    manager->Stop();
}

int main(int argc, const char * argv[])
{
    Config::Instance()->LoadConfigFile("");
    ServerManager * manager = ServerManager::Instance();

    signal(SIGSTOP, SignalProcess);

    manager->Start();
    return EXIT_SUCCESS;
}